package com.xyzpool.test;
import static org.junit.Assert.*;

/**
 * Boolean对象
 * @author yangzhen
 *
 */
public class BooleanTestor {
	/**
	 * 强制转换时null不会转成null，而是转为false,也就是说parseBoolean后只会有两种值.
	 * @param args
	 */
	public static void main(String[] args) {
		assertFalse(Boolean.parseBoolean(null));
		assertTrue(Boolean.parseBoolean("true"));
		assertFalse(Boolean.parseBoolean("false"));
	}

}
